<?php
/**
 * Created by PhpStorm.
 * User: wangkxin@foxmail.com
 * Date: 2020/9/15
 * Time: 11:09
 */

namespace app\bis\model;
use think\Model;

class City extends Model
{
    public function getNormalCityByParentId($parentId=0)
    {
        $data = [
            'status'    => 1,
            'parent_id' => $parentId,
        ];
        $order =[
            'id'    => 'desc',
        ];
        return $this->where($data)
            ->order($order)
            ->select();
    }



}